package Proxy;

import dao.UserDao;

/**
 * Created by dongjie on 2018/2/26.
 */
public class UserDaoStaticProxy implements UserDao {
    private UserDao target;


    public UserDaoStaticProxy(UserDao target) {
        this.target = target;
    }

    @Override
    public void save() {
        System.out.println("保存之前");
        target.save();
        System.out.println("保存之后");
    }
}
